<template>
  <div>
    <!--
    <div class="items-wrapper">
      <van-cell-group>
        <van-cell to="/setting/about" title="关于书画点评" />
      </van-cell-group>
    </div>
    -->


    <div class="items-wrapper">
      <van-cell-group>
        <van-cell to="/password/reset" title="修改密码" />
        <van-cell @click="logout" title="退出" />
      </van-cell-group>
    </div>
  </div>
</template>

<script>
import Vue from 'vue'
import qs from 'qs'

export default {
  name: 'Setting',
  data () {
    return {
    }
  },
  created () {

  },
  methods: {
    logout () {
      var that = this
      that.$store.dispatch('logout')
      that.$router.replace('/login')
      /*
      this.axios.post('/user/logout')
      .then(function (response) {
        var res = response.data
        if (res.code === 200) {
          that.$store.dispatch('logout')
          that.$router.replace('/login')
        }
      })
      */
    }
  }
}

</script>
